/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.common.xml.node;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

/**
 * 默认xml节点合并实现
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
public class DefaultNodeMerge implements INodeMerge {

	@Override
	public void nodeMerge(Document document, Element targetElement, Node sourceNode) {
		targetElement.appendChild(document.importNode(sourceNode, true));
	}

}
